<blockquote class="layui-elem-quote quoteBox">
    <form class="layui-form">
        <div id="conversation">
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">接收到消息</label>
                <div class="layui-input-block">
                    <textarea id="responseMessage" class="layui-textarea"></textarea>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">消息</label>
                <div class="layui-input-block">
                    <textarea id="requestMessage" name="desc" placeholder="请输入消息内容" class="layui-textarea"></textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button type="button" id="sendMessage" class="layui-btn layui-btn-sm">发送消息</button>
                    <button type="reset" class="layui-btn layui-btn-sm layui-btn-primary">重置</button>
                </div>
            </div>
        </div>
        <br/><br/>
    </form>
</blockquote>
<script src="/static/plugins/reconnecting-websocket.min.js"></script>
<script>
    var fn = {};
    layui.config({
        base: '/static/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'core/socket']);
</script>